<?php
defined('SYS_RUN') or exit();

class Command_Server extends ACli{

    public function actionStart($params) {
        $server = Lib::get('socketServer', $params);
        try {
            $this->write('Server starting...');
            $server->start();
            $this->write('Server stop...');
        } catch (SocketException $e) {
            $this->write($e->getMessage().PHP_EOL.$e->getFile().PHP_EOL.$e->getLine());
        }
    }
}